package work.boom1;

/**
 * @author lijunhao
 * 2023/7/12 作业
 * @description TODO
 */
public class Gradetet {
    public static void main(String[] args) {


           Grade studengt = new Grade();
        studengt.setJavaGrade(90.5f);
        studengt.setcGrade(85.2f);
        studengt.setDatabaseGrade(92.8f);

            // 调用计算方法并打印结果
            float averageScore = studengt.averageGrde();
            float totalScore = studengt.totaleGrde();
            System.out.println("平均分: " + averageScore);
            System.out.println("总分: " + totalScore);
        }
    }


